#    define MEXIF_TAGID_CANON_CameraSettings        0x0001
#    define MEXIF_TAGID_CANON_FocalLength           0x0002
#    define MEXIF_TAGID_CANON_FlashInfo             0x0003
#    define MEXIF_TAGID_CANON_ShotInfo              0x0004
#    define MEXIF_TAGID_CANON_Panorama              0x0005
#    define MEXIF_TAGID_CANON_ImageType             0x0006
#    define MEXIF_TAGID_CANON_FirmwareVersion       0x0007
#    define MEXIF_TAGID_CANON_FileNumber            0x0008
#    define MEXIF_TAGID_CANON_OwnerName             0x0009
#    define MEXIF_TAGID_CANON_ColorInfoD30          0x000a
#    define MEXIF_TAGID_CANON_SerialNumber          0x000c
#    define MEXIF_TAGID_CANON_CameraInfo            0x000d
#    define MEXIF_TAGID_CANON_FileLength            0x000e
#    define MEXIF_TAGID_CANON_CustomFunctions       0x000f
#    define MEXIF_TAGID_CANON_ModelID               0x0010
#    define MEXIF_TAGID_CANON_AFInfo                0x0012
#    define MEXIF_TAGID_CANON_ThumbnailImageValidArea  0x0013
#    define MEXIF_TAGID_CANON_SerialNumberFormat    0x0015
#    define MEXIF_TAGID_CANON_DateStampMode         0x001c
#    define MEXIF_TAGID_CANON_MyColors              0x001d
#    define MEXIF_TAGID_CANON_FirmwareRevision      0x001e
#    define MEXIF_TAGID_CANON_FaceDetect1           0x0024
#    define MEXIF_TAGID_CANON_FaceDetect2           0x0025
#    define MEXIF_TAGID_CANON_AFInfo2               0x0026
#    define MEXIF_TAGID_CANON_OriginalDecisionData  0x0083
#    define MEXIF_TAGID_CANON_CustomFunctions1D     0x0090
#    define MEXIF_TAGID_CANON_PersonalFunctions     0x0091
#    define MEXIF_TAGID_CANON_PersonalFunctionValues  0x0092
#    define MEXIF_TAGID_CANON_FileInfo              0x0093
#    define MEXIF_TAGID_CANON_AFPointsInFocus1D     0x0094
#    define MEXIF_TAGID_CANON_LensType              0x0095
#    define MEXIF_TAGID_CANON_InternalSerialNumber  0x0096
#    define MEXIF_TAGID_CANON_DustRemovalData       0x0097
#    define MEXIF_TAGID_CANON_CustomFunctions2      0x0099
#    define MEXIF_TAGID_CANON_ProcessingInfo        0x00a0
#    define MEXIF_TAGID_CANON_ToneCurveTable        0x00a1
#    define MEXIF_TAGID_CANON_SharpnessTable        0x00a2
#    define MEXIF_TAGID_CANON_SharpnessFreqTable    0x00a3
#    define MEXIF_TAGID_CANON_WhiteBalanceTable     0x00a4
#    define MEXIF_TAGID_CANON_ColorBalance          0x00a9
#    define MEXIF_TAGID_CANON_ColorTemperature      0x00ae
#    define MEXIF_TAGID_CANON_Flags                 0x00b0
#    define MEXIF_TAGID_CANON_ModifiedInfo          0x00b1
#    define MEXIF_TAGID_CANON_ToneCurveMatching     0x00b2
#    define MEXIF_TAGID_CANON_WhiteBalanceMatching  0x00b3
#    define MEXIF_TAGID_CANON_ColorSpace            0x00b4
#    define MEXIF_TAGID_CANON_PreviewImageInfo      0x00b6
#    define MEXIF_TAGID_CANON_VRDOffset             0x00d0
#    define MEXIF_TAGID_CANON_SensorInfo            0x00e0
#    define MEXIF_TAGID_CANON_ColorBalance1         0x4001
#    define MEXIF_TAGID_CANON_ColorBalance2         0x4001
#    define MEXIF_TAGID_CANON_ColorBalance3         0x4001
#    define MEXIF_TAGID_CANON_ColorBalanceUnknown   0x4001
#    define MEXIF_TAGID_CANON_UnknownBlock1         0x4002
#    define MEXIF_TAGID_CANON_ColorInfo             0x4003
#    define MEXIF_TAGID_CANON_UnknownBlock2         0x4005
#    define MEXIF_TAGID_CANON_BlackLevel            0x4008
#    define _MEXIF_TAGID_CANON_Count                57

#    define MEXIF_TAGID_CANON_CameraSettings_MacroMode  0x0001
#    define MEXIF_TAGID_CANON_CameraSettings_Quality  0x0003
#    define MEXIF_TAGID_CANON_CameraSettings_FlashMode  0x0004
#    define MEXIF_TAGID_CANON_CameraSettings_ContinuousDrive  0x0005
#    define MEXIF_TAGID_CANON_CameraSettings_FocusMode  0x0007
#    define MEXIF_TAGID_CANON_CameraSettings_RecordMode  0x0009
#    define MEXIF_TAGID_CANON_CameraSettings_ImageSize  0x000a
#    define MEXIF_TAGID_CANON_CameraSettings_EasyMode  0x000b
#    define MEXIF_TAGID_CANON_CameraSettings_DigitalZoom  0x000c
#    define MEXIF_TAGID_CANON_CameraSettings_Contrast  0x000d
#    define MEXIF_TAGID_CANON_CameraSettings_Saturation  0x000e
#    define MEXIF_TAGID_CANON_CameraSettings_Sharpness  0x000f
#    define MEXIF_TAGID_CANON_CameraSettings_CameraISO  0x0010
#    define MEXIF_TAGID_CANON_CameraSettings_MeteringMode  0x0011
#    define MEXIF_TAGID_CANON_CameraSettings_FocusRange  0x0012
#    define MEXIF_TAGID_CANON_CameraSettings_AFPoint  0x0013
#    define MEXIF_TAGID_CANON_CameraSettings_ExposureMode  0x0014
#    define MEXIF_TAGID_CANON_CameraSettings_LensType  0x0016
#    define MEXIF_TAGID_CANON_CameraSettings_LongFocal  0x0017
#    define MEXIF_TAGID_CANON_CameraSettings_ShortFocal  0x0018
#    define MEXIF_TAGID_CANON_CameraSettings_FocalUnits  0x0019
#    define MEXIF_TAGID_CANON_CameraSettings_MaxAperture  0x001a
#    define MEXIF_TAGID_CANON_CameraSettings_MinAperture  0x001b
#    define MEXIF_TAGID_CANON_CameraSettings_FlashActivity  0x001c
#    define MEXIF_TAGID_CANON_CameraSettings_FlashBits  0x001d
#    define MEXIF_TAGID_CANON_CameraSettings_FocusContinuous  0x0020
#    define MEXIF_TAGID_CANON_CameraSettings_AESetting  0x0021
#    define MEXIF_TAGID_CANON_CameraSettings_ImageStabilization  0x0022
#    define MEXIF_TAGID_CANON_CameraSettings_DisplayAperture  0x0023
#    define MEXIF_TAGID_CANON_CameraSettings_ZoomSourceWidth  0x0024
#    define MEXIF_TAGID_CANON_CameraSettings_ZoomTargetWidth  0x0025
#    define MEXIF_TAGID_CANON_CameraSettings_SpotMeteringMode  0x0027
#    define MEXIF_TAGID_CANON_CameraSettings_PhotoEffect  0x0028
#    define MEXIF_TAGID_CANON_CameraSettings_ManualFlashOutput  0x0029
#    define MEXIF_TAGID_CANON_CameraSettings_ColorTone  0x002a
#    define _MEXIF_TAGID_CANON_CameraSettings_Count 35

#    define MEXIF_TAGID_CANON_FocalLength_FocalType 0x0000
#    define MEXIF_TAGID_CANON_FocalLength_FocalLength  0x0001
#    define MEXIF_TAGID_CANON_FocalLength_FocalPlaneXSize  0x0002
#    define MEXIF_TAGID_CANON_FocalLength_FocalPlaneYSize  0x0003
#    define _MEXIF_TAGID_CANON_FocalLength_Count    4

#    define MEXIF_TAGID_CANON_ShotInfo_AutoISO      0x0001
#    define MEXIF_TAGID_CANON_ShotInfo_BaseISO      0x0002
#    define MEXIF_TAGID_CANON_ShotInfo_MeasuredEV   0x0003
#    define MEXIF_TAGID_CANON_ShotInfo_TargetAperture  0x0004
#    define MEXIF_TAGID_CANON_ShotInfo_TargetExposureTime  0x0005
#    define MEXIF_TAGID_CANON_ShotInfo_ExposureCompensation  0x0006
#    define MEXIF_TAGID_CANON_ShotInfo_WhiteBalance 0x0007
#    define MEXIF_TAGID_CANON_ShotInfo_SlowShutter  0x0008
#    define MEXIF_TAGID_CANON_ShotInfo_SequenceNumber  0x0009
#    define MEXIF_TAGID_CANON_ShotInfo_OpticalZoomCode  0x000a
#    define MEXIF_TAGID_CANON_ShotInfo_FlashGuideNumber  0x000d
#    define MEXIF_TAGID_CANON_ShotInfo_AFPointsInFocus  0x000e
#    define MEXIF_TAGID_CANON_ShotInfo_FlashExposureComp  0x000f
#    define MEXIF_TAGID_CANON_ShotInfo_AutoExposureBracketing  0x0010
#    define MEXIF_TAGID_CANON_ShotInfo_AEBBracketValue  0x0011
#    define MEXIF_TAGID_CANON_ShotInfo_ControlMode  0x0012
#    define MEXIF_TAGID_CANON_ShotInfo_FocusDistanceUpper  0x0013
#    define MEXIF_TAGID_CANON_ShotInfo_FocusDistanceLower  0x0014
#    define MEXIF_TAGID_CANON_ShotInfo_FNumber      0x0015
#    define MEXIF_TAGID_CANON_ShotInfo_ExposureTime 0x0016
#    define MEXIF_TAGID_CANON_ShotInfo_BulbDuration 0x0018
#    define MEXIF_TAGID_CANON_ShotInfo_CameraType   0x001a
#    define MEXIF_TAGID_CANON_ShotInfo_AutoRotate   0x001b
#    define MEXIF_TAGID_CANON_ShotInfo_NDFilter     0x001c
#    define MEXIF_TAGID_CANON_ShotInfo_Self_Timer2  0x001d
#    define MEXIF_TAGID_CANON_ShotInfo_FlashOutput  0x0021
#    define _MEXIF_TAGID_CANON_ShotInfo_Count       26

#    define MEXIF_TAGID_CANON_Panorama_PanoramaFrame  0x0002
#    define MEXIF_TAGID_CANON_Panorama_PanoramaDirection  0x0005
#    define _MEXIF_TAGID_CANON_Panorama_Count       2

#    define MEXIF_TAGID_CANON_AFInfo_NumAFPoints    0x0000
#    define MEXIF_TAGID_CANON_AFInfo_ValidAFPoints  0x0001
#    define MEXIF_TAGID_CANON_AFInfo_CanonImageWidth  0x0002
#    define MEXIF_TAGID_CANON_AFInfo_CanonImageHeight  0x0003
#    define MEXIF_TAGID_CANON_AFInfo_AFImageWidth   0x0004
#    define MEXIF_TAGID_CANON_AFInfo_AFImageHeight  0x0005
#    define MEXIF_TAGID_CANON_AFInfo_AFAreaWidth    0x0006
#    define MEXIF_TAGID_CANON_AFInfo_AFAreaHeight   0x0007
#    define MEXIF_TAGID_CANON_AFInfo_AFAreaXPositions  0x0008
#    define MEXIF_TAGID_CANON_AFInfo_AFAreaYPositions  0x0009
#    define MEXIF_TAGID_CANON_AFInfo_AFPointsInFocus  0x000a
#    define MEXIF_TAGID_CANON_AFInfo_PrimaryAFPoint1  0x000b
#    define MEXIF_TAGID_CANON_AFInfo_PrimaryAFPoint2  0x000c
#    define _MEXIF_TAGID_CANON_AFInfo_Count         13

#    define MEXIF_TAGID_CANON_MyColors_MyColorMode  0x0002
#    define _MEXIF_TAGID_CANON_MyColors_Count       1

#    define MEXIF_TAGID_CANON_FaceDetect1_FacesDetected  0x0002
#    define MEXIF_TAGID_CANON_FaceDetect1_FaceDetectFrameWidth  0x0003
#    define MEXIF_TAGID_CANON_FaceDetect1_FaceDetectFrameHeight  0x0004
#    define MEXIF_TAGID_CANON_FaceDetect1_Face0PositionX  0x0008
#    define MEXIF_TAGID_CANON_FaceDetect1_Face0PositionY  0x0009
#    define MEXIF_TAGID_CANON_FaceDetect1_Face1PositionX  0x000a
#    define MEXIF_TAGID_CANON_FaceDetect1_Face1PositionY  0x000b
#    define MEXIF_TAGID_CANON_FaceDetect1_Face2PositionX  0x000c
#    define MEXIF_TAGID_CANON_FaceDetect1_Face2PositionY  0x000d
#    define MEXIF_TAGID_CANON_FaceDetect1_Face3PositionX  0x000e
#    define MEXIF_TAGID_CANON_FaceDetect1_Face3PositionY  0x000f
#    define MEXIF_TAGID_CANON_FaceDetect1_Face4PositionX  0x0010
#    define MEXIF_TAGID_CANON_FaceDetect1_Face4PositionY  0x0011
#    define MEXIF_TAGID_CANON_FaceDetect1_Face5PositionX  0x0012
#    define MEXIF_TAGID_CANON_FaceDetect1_Face5PositionY  0x0013
#    define MEXIF_TAGID_CANON_FaceDetect1_Face6PositionX  0x0014
#    define MEXIF_TAGID_CANON_FaceDetect1_Face6PositionY  0x0015
#    define MEXIF_TAGID_CANON_FaceDetect1_Face7PositionX  0x0016
#    define MEXIF_TAGID_CANON_FaceDetect1_Face7PositionY  0x0017
#    define MEXIF_TAGID_CANON_FaceDetect1_Face8PositionX  0x0018
#    define MEXIF_TAGID_CANON_FaceDetect1_Face8PositionY  0x0019
#    define _MEXIF_TAGID_CANON_FaceDetect1_Count    21

#    define MEXIF_TAGID_CANON_FaceDetect2_FacesDetected  0x0002
#    define _MEXIF_TAGID_CANON_FaceDetect2_Count    1

#    define MEXIF_TAGID_CANON_AFInfo2_AFMode        0x0001
#    define MEXIF_TAGID_CANON_AFInfo2_NumAFPoints   0x0002
#    define MEXIF_TAGID_CANON_AFInfo2_ValidAFPoints 0x0003
#    define MEXIF_TAGID_CANON_AFInfo2_CanonImageWidth  0x0004
#    define MEXIF_TAGID_CANON_AFInfo2_CanonImageHeight  0x0005
#    define MEXIF_TAGID_CANON_AFInfo2_AFImageWidth  0x0006
#    define MEXIF_TAGID_CANON_AFInfo2_AFImageHeight 0x0007
#    define MEXIF_TAGID_CANON_AFInfo2_AFAreaWidths  0x0008
#    define MEXIF_TAGID_CANON_AFInfo2_AFAreaHeights 0x0009
#    define MEXIF_TAGID_CANON_AFInfo2_AFAreaXPositions  0x000a
#    define MEXIF_TAGID_CANON_AFInfo2_AFAreaYPositions  0x000b
#    define MEXIF_TAGID_CANON_AFInfo2_AFPointsInFocus  0x000c
#    define MEXIF_TAGID_CANON_AFInfo2_AFPointsSelected  0x000d
#    define MEXIF_TAGID_CANON_AFInfo2_PrimaryAFPoint  0x000e
#    define _MEXIF_TAGID_CANON_AFInfo2_Count        14

#    define MEXIF_TAGID_CANON_FileInfo_FileNumber   0x0001
#    define MEXIF_TAGID_CANON_FileInfo_BracketMode  0x0003
#    define MEXIF_TAGID_CANON_FileInfo_BracketValue 0x0004
#    define MEXIF_TAGID_CANON_FileInfo_BracketShotNumber  0x0005
#    define MEXIF_TAGID_CANON_FileInfo_RawJpgQuality  0x0006
#    define MEXIF_TAGID_CANON_FileInfo_RawJpgSize   0x0007
#    define MEXIF_TAGID_CANON_FileInfo_NoiseReduction  0x0008
#    define MEXIF_TAGID_CANON_FileInfo_WBBracketMode  0x0009
#    define MEXIF_TAGID_CANON_FileInfo_WBBracketValueAB  0x000c
#    define MEXIF_TAGID_CANON_FileInfo_WBBracketValueGM  0x000d
#    define MEXIF_TAGID_CANON_FileInfo_FilterEffect 0x000e
#    define MEXIF_TAGID_CANON_FileInfo_ToningEffect 0x000f
#    define _MEXIF_TAGID_CANON_FileInfo_Count       12

#    define MEXIF_TAGID_CANON_ProcessingInfo_ToneCurve  0x0001
#    define MEXIF_TAGID_CANON_ProcessingInfo_Sharpness  0x0002
#    define MEXIF_TAGID_CANON_ProcessingInfo_SharpnessFrequency  0x0003
#    define MEXIF_TAGID_CANON_ProcessingInfo_SensorRedLevel  0x0004
#    define MEXIF_TAGID_CANON_ProcessingInfo_SensorBlueLevel  0x0005
#    define MEXIF_TAGID_CANON_ProcessingInfo_WhiteBalanceRed  0x0006
#    define MEXIF_TAGID_CANON_ProcessingInfo_WhiteBalanceBlue  0x0007
#    define MEXIF_TAGID_CANON_ProcessingInfo_WhiteBalance  0x0008
#    define MEXIF_TAGID_CANON_ProcessingInfo_ColorTemperature  0x0009
#    define MEXIF_TAGID_CANON_ProcessingInfo_PictureStyle  0x000a
#    define MEXIF_TAGID_CANON_ProcessingInfo_DigitalGain  0x000b
#    define MEXIF_TAGID_CANON_ProcessingInfo_WBShiftAB  0x000c
#    define MEXIF_TAGID_CANON_ProcessingInfo_WBShiftGM  0x000d
#    define _MEXIF_TAGID_CANON_ProcessingInfo_Count 13

#    define MEXIF_TAGID_CANON_SensorInfo_SensorWidth  0x0001
#    define MEXIF_TAGID_CANON_SensorInfo_SensorHeight  0x0002
#    define MEXIF_TAGID_CANON_SensorInfo_SensorLeftBorder  0x0005
#    define MEXIF_TAGID_CANON_SensorInfo_SensorTopBorder  0x0006
#    define MEXIF_TAGID_CANON_SensorInfo_SensorRightBorder  0x0007
#    define MEXIF_TAGID_CANON_SensorInfo_SensorBottomBorder  0x0008
#    define _MEXIF_TAGID_CANON_SensorInfo_Count     6

#    define MEXIF_TAGID_CANON_ColorInfo_Saturation  0x0001
#    define MEXIF_TAGID_CANON_ColorInfo_ColorTone   0x0002
#    define MEXIF_TAGID_CANON_ColorInfo_ColorSpace  0x0003
#    define _MEXIF_TAGID_CANON_ColorInfo_Count      3



extern mexif_tagdb_t mexif_CANON_db[_MEXIF_TAGID_CANON_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_CameraSettings_db[_MEXIF_TAGID_CANON_CameraSettings_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_CameraSettings_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_FocalLength_db[_MEXIF_TAGID_CANON_FocalLength_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_FocalLength_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_ShotInfo_db[_MEXIF_TAGID_CANON_ShotInfo_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_ShotInfo_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_Panorama_db[_MEXIF_TAGID_CANON_Panorama_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_Panorama_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_AFInfo_db[_MEXIF_TAGID_CANON_AFInfo_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_AFInfo_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_MyColors_db[_MEXIF_TAGID_CANON_MyColors_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_MyColors_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_FaceDetect1_db[_MEXIF_TAGID_CANON_FaceDetect1_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_FaceDetect1_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_FaceDetect2_db[_MEXIF_TAGID_CANON_FaceDetect2_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_FaceDetect2_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_AFInfo2_db[_MEXIF_TAGID_CANON_AFInfo2_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_AFInfo2_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_FileInfo_db[_MEXIF_TAGID_CANON_FileInfo_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_FileInfo_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_ProcessingInfo_db[_MEXIF_TAGID_CANON_ProcessingInfo_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_ProcessingInfo_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_SensorInfo_db[_MEXIF_TAGID_CANON_SensorInfo_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_SensorInfo_search( unsigned int tagid );
extern mexif_tagdb_t mexif_CANON_ColorInfo_db[_MEXIF_TAGID_CANON_ColorInfo_Count+1];
const mexif_tagdb_t* MEXIF_API mexif_CANON_ColorInfo_search( unsigned int tagid );


